# -*- coding: utf-8 -*-
from collections import defaultdict

from kivy.app import App
from hat_widget import *
from kivy.uix.label import Label
from model import gamestate


class NameLabel(Label):
    pass


class PlayerResultLabel(Label):
    pass


class PairResultLabel(Label):
    pass


class BorderLabel(Label):
    pass


class CurResults(HatWidget):
    def __init__(self, gamestate, presenter, **kwargs):
        super(CurResults, self).__init__(**kwargs)
        self.results_panel.init_widget(gamestate, presenter)
        self.presenter = presenter
        self.gamestate = gamestate

    def end_game(self):
        self.presenter.restart()

    def back(self):
        self.presenter.change_phase(gamestate.Phase.FROM_TO)

    def sort_style(x, sortid):
        return

    def go_back(self):
        self.back()
